<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>
    <blockquote class="layui-elem-quote"><{$action}></blockquote>

    <fieldset class="layui-elem-field">
        <legend>按条件搜索</legend>
        <div class="layui-field-box">
                <form class="layui-form layui-form-pane1" method="get" action="<{$current_url}>">
                    
                    <div class="layui-form-item">
                        <div class="layui-input-inline">
                            <select name="school_id" class="abc" lay-search="" lay-verify="required" id="cate_id" placeholder="请选择" lay-filter="cate_id">
                                <option value="">网校</option>
                                <{foreach from=$schools item=item}>
                                    <option value="<{$item.id}>" <{if $school_id eq $item.id}>selected="selected"<{/if}>><{$item.school_name}></option>
                                <{/foreach}>
                            </select>
                        </div>
                        

                        <div class="layui-inline">
                            <button type="submit" class="layui-btn">搜索</button>
                            
                        </div>
                    </div>
                </form>
        </div>
    </fieldset>
            
    
        <!-- <div class="mt">
            <span class="l fs16">状态：</span>
            
        </div> -->
        <table class="layui-table" lay-even lay-skin="row">
            <thead>
                <tr>
                    <th>订单号</th>
                    <th>学校</th>
                    <th>学员</th>
                    <th>订单类型</th>
                    <th>订单价格</th>
                    <th>下单时间</th>
                    <th>状态</th>
                    
                </tr>
            </thead>   
            <tbody>
            <{foreach from=$orders item=item}>
                <tr>
                    <td class="not_lb tal"><{$item['order_num']}></td>
                    <td class="not_lb tal">
                        <{$item['school_name']}>
                    </td>
                    <td>
                    <{$item['buyer_user_name']}>
                    
                    </td>
                    <td>
                        <{if $item['order_type']==1}>
                        视频课
                        <{elseif $item['order_type']==2}>
                        直播课
                        <{elseif $item['order_type']==3}>
                        面授课
                        <{elseif $item['order_type']==4}>
                        题库
                        <{elseif $item['order_type']==5}>
                        实训
                        <{/if}>
                        
                    </td>
                    <td class="not_lb tal"><span class="c-ff6d5e">¥<{$item.total_order_amount}>元</span></td>
                    <td class="not_lb tal">
                        <{$item[ 'order_time']|date_format: '%Y-%m-%d <br> %H:%M:%S'}></td>
                    <td class="not_lb tal">
                    
                        <{if $item['order_status'] == -1}>
                        已取消
                        <{elseif $item['order_status'] == 0}>
                        待支付
                        <{elseif $item['order_status'] == 1}>
                        已支付
                        <{/if}>
                    </td>
                    
                </tr>
            <{/foreach}>
            <{if $orders|count eq 0}>
                <tr>
                    <td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="8">
                        赞无数据！
                    </td>
                </tr>
            <{/if}>
            <tr>
                <td class="center" colspan="12">
                    <!-- <input type="checkbox" lay-filter="checkbox_all" title="全选">
                    <button id="delete" class="layui-btn layui-btn-primary layui-btn-small" style="margin-top:4px;"><i class="layui-icon"></i> 批量删除</button> -->
                </td>
            </tr>
            </tbody>
        </table>
    
    <div class="layui-box layui-laypage layui-laypage-default">
            <{$pagination}>
        </div>
<{include file="public_html/footer.html"}>
